This fixes the problem that the process does not exit after timeout when
running as GApplication service.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3689>
vfunc_activate() {
this._extensionManager.checkForUpdates();
+
+ if (!this._window)
+ this._window = new ExtensionsWindow({application: this});
+
this._window.present();
}
this.add_action_entries(
[{
name: 'quit',
- activate: () => this._window.close(),
+ activate: () => this._window?.close(),
}]);
this.set_accels_for_action('app.quit', ['<Primary>q']);
this.set_accels_for_action('window.close', ['<Primary>w']);
this._extensionManager = new ExtensionManager();
-
- this._window = new ExtensionsWindow({application: this});
}
});